package utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TextDateSim {
       private static final SimpleDateFormat SJ=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
       private static final SimpleDateFormat SJD=new SimpleDateFormat("yyyy-MM-dd");
       public static String dateToString(long start){
    	   return SJ.format(start);
       }public static Date stringToDate(String  string) throws ParseException{
    	   return SJ.parse(string);
       }
       public static String dateToString1(Date yingwentime){
    	   return SJD.format(yingwentime);
       }public static Date stringToDate1(String  string) throws ParseException{
    	   return SJD.parse(string);
       }
}
